import tsHeader from './tsui/header/header.vue'
import tsTabbar from './tsui/tabbar/tabbar.vue'
import tsGroup from './tsui/group/group.vue'
import tsCell from './tsui/cell/cell.vue'
import tsButton from './tsui/button/button.vue'
import tsInput from './tsui/input/input.vue'
import tsFiled from './tsui/filed/filed.vue'
import tsModal from './tsui/modal/modal.vue'
import {Popup, Picker, Spinner} from 'mint-ui'

//plugin <=> component
import Modal from './tsui/modal'

import GenderPicker from './module/GenderPicker.vue'
import Uploader from './module/Uploader.vue'
import tsTimePicker from './module/timePicker.vue'

import FlexView from './tsui/flex-view/flex-view.vue'

export default {
  install(Vue) {
    Vue.component(tsHeader.name, tsHeader);
    Vue.component(tsTabbar.name, tsTabbar);
    Vue.component(tsGroup.name, tsGroup);
    Vue.component(tsCell.name, tsCell);
    Vue.component(tsButton.name, tsButton);
    Vue.component(tsInput.name, tsInput);
    Vue.component(tsFiled.name, tsFiled);
    Vue.component(tsModal.name, tsModal);
    Vue.component(tsTimePicker.name, tsTimePicker);

    //mint-ui
    Vue.component(Popup.name, Popup);
    Vue.component(Picker.name, Picker);
    Vue.component(Spinner.name, Spinner);

    //module
    Vue.component(GenderPicker.name, GenderPicker);

    //scroller
    Vue.component(FlexView.name, FlexView);

    Vue.prototype.$modal = Modal

    Vue.component(Uploader.name, Uploader);
  }
}

